<div class="new_mn">
        	<?= $this->partial('pm/pmlayout.phtml', array(
									'flid' => $this->flid, 
									'flArray' => $this->flArray,
									'fromto' => $this->fromto
								)
				); 
			?>  
			<?if($this->pageArray['pageNumber']>0):?>
			<form name="pmForm" id="userdisplay" method="post" action="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>">
			<table class="list" border="1" cellpadding="0" cellspacing="0" bordercolor="#b9b9b9" style="border-collapse:collapse">    	
		    	<?php if($this->fromto=='to'):?>
		    		<?for($i=0;$i<count($this->pmArray);$i++):?>
			    	<tr>
			    		<td align="right" width="50">From:</td>
			    		<td align="left" style="text-align: left; padding-left: 5px;">
			    		<?=$this->pmArray[$i]['username']?>
			    		<?if($this->pmArray[$i]['has_read']==0):?>
							<font color="red">Not read yet　</font> 
						<?endif;?>
						</td>			    		
			    		<td align="left" style="text-align: left; padding-left: 5px;">Subject:<?=$this->pmArray[$i]['subject']?></td>
			    		<td align="left">
							<a href="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>more?pmid=<?=$this->pmArray[$i]['pmid']?>&fromto=<?=$this->fromto?>&flid=<?=$this->pmArray[$i]['flid']?>">Learn More</a>　
			    			<a onclick="return shouldDel();" href="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>&pmid=<?=$this->pmArray[$i]['pmid']?>">delete</a>
			    		</td>
			    		<td><input type="checkbox" name="itemArray[]" value="<?=$this->pmArray[$i]['pmid']?>" /></td>
			    	</tr>
			    	<?php endfor;?>
		    	<?php else:?>
		    		<?for($i=0;$i<count($this->pmArray);$i++):?>
			    	<tr>
			    		<td align="right" width="50">To:</td>
			    		<td align="left" style="text-align: left; padding-left: 5px;">
			    		<?=$this->pmArray[$i]['username']?>
			    		<?if($this->pmArray[$i]['has_read']==0):?>
							<font color="red">Not read yet　</font> 
						<?endif;?>
						</td>			    		
			    		<td align="left" style="text-align: left; padding-left: 5px;">Subject:<?=$this->pmArray[$i]['subject']?></td>
			    		<td align="left">
			    			<a onclick="return shouldDel();" href="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>del?fromto=<?=$this->fromto?>&pmid=<?=$this->pmArray[$i]['pmid']?>">delete</a>　
							<a href="adminb<?=CHOSING_DE?>pm<?=CHOSING_DE?>more?pmid=<?=$this->pmArray[$i]['pmid']?>&fromto=<?=$this->fromto?>&flid=<?=$this->pmArray[$i]['flid']?>">more</a>　
			    		</td>
			    		<td><input type="checkbox" name="itemArray[]" value="<?=$this->pmArray[$i]['pmid']?>" /></td>
			    	</tr>
			    	<?php endfor;?>
		    	<?php endif;?>
		    		<tr>
			    		<td align="right" colspan="5">
			    		<div style="float: left; margin-left: 8px;">All <?=$this->pageArray['pageNumber']?> page(s)&nbsp;&nbsp;<?=$this->pageString?></div>
			    		<div style="float: right; margin-right: 5px;">Select all <input style="position:relative;top:2px;*top:2px;margin:0 4px 0 0;*margin:0 0 0 -4px;" onclick="selectAll(this,'userdisplay','itemArray[]');" type="checkbox" />&nbsp;&nbsp;<input onClick="return checkShouldDelItems('pmForm','itemArray[]',1);" type="submit" value="delete" class="subtn spbg2"/></div>
						
			    		</td>			    		
			    	</tr>
		    </table>			
		    </form>
			<?php else:?>		
    		 <div class="items clearfix">    		
    			<?php echo $this->getMsg('No Message');?>
    		</div>
    		<?php endif;?>
        </div>